platform :ios,'12.0'
inhibit_all_warnings!

ENV['COCOAPODS_DISABLE_STATS'] = 'true'
install! 'cocoapods', :disable_input_output_paths => true

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 12.0
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
      end
    end
  end
end

def PodsForRemoteThirdSDK
  pod 'AFNetworking', '4.0.1'
  pod 'SDWebImage', '5.12.3'
  pod 'Masonry', '1.1.0'
  pod 'MJRefresh', '3.7.2'
  pod 'YYKit', '1.0.9'
  pod 'YYKeyboardManager', '1.0.1'
  pod 'MBProgressHUD', '1.2.0'
  pod 'SDCycleScrollView', '1.82'
  pod 'TZImagePickerController', '3.7.6'
  pod 'Bugly', '2.5.9'
  pod 'YYNavigation', '0.2.4'
  pod 'MJExtension'
end

def PodsForLocalLibrary
  pod 'BINetworkModule', :path => '../ToolPod/BINetworkModule/BINetworkModule.podspec'
  pod 'BIToolModule', :path => '../ToolPod/BIToolModule/BIToolModule.podspec'
  pod 'BIRouteModule', :path => '../ToolPod/BIRouteModule/BIRouteModule.podspec'
  pod 'BIPushModule', :path => '../ToolPod/BIPushModule/BIPushModule.podspec'
  pod 'BIWebModule', :path => '../ToolPod/BIWebModule/BIWebModule.podspec'
  pod 'BIDebugModule', :path => '../ToolPod/BIDebugModule/BIDebugModule.podspec'
  pod 'BIThirdModule', :path => '../ToolPod/BIThirdModule/BIThirdModule.podspec'
  pod 'BIUserModule', :path => '../ToolPod/BIUserModule/BIUserModule.podspec'
  pod 'BIProjectModule', :path => 'BIProjectModule/BIProjectModule.podspec'
  pod 'BIBluetoothModule', :path => 'BIBluetoothModule/BIBluetoothModule.podspec'
end
  
target 'XYYCollarMicrophone' do
    PodsForRemoteThirdSDK()
    PodsForLocalLibrary()
end
